from flask import Flask
from config.setting import DevConfig
from flask_cors import CORS
from model import db
from router.url import api
from api.cache import cache


app = Flask(__name__)
CORS(app)

app.config.from_object(DevConfig)

api.init_app(app)
db.init_app(app)
cache.init_app(app)

if __name__ == '__main__':
    app.run()
